package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import wqh.dao.UserRoleDao;
import wqh.domain.UserRole;
import wqh.service.UserRoleService;

import java.util.List;

/**
 * Created by devts on 2016/11/14.
 */
@Service("userRoleService")
public class UserRoleServiceImpl implements UserRoleService{

    @Autowired
    private UserRoleDao userRoleDao;

    public UserRole findById(Integer id) {
        return userRoleDao.findById(id);
    }

    public UserRole findByName(String name) {
        return userRoleDao.findByName(name);
    }

    public List<UserRole> findThanRole(Integer role_auth_type_id) {
        return userRoleDao.findThanRole(role_auth_type_id);
    }

    public UserRole findRole(Integer role_auth_type_id) {
        return userRoleDao.findRole(role_auth_type_id);
    }
}
